{% extends 'bbs/base.html' %}
{% load staticfiles %}
{% block body %}
    {#    <form action="{% url 'topic_create' %}" method="post" id="form_topic">#}
    {#        {% csrf_token %}#}
    {#        {{ form.as_p }}<br>#}
    {#    <input type="submit" value="确认">#}
    {#    <input type="reset" value="重置">#}
    {#    </form>#}
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-md-offset-2">
                <form action="{% url 'topic_create' %}" method="post" id="form_topic">
                    {% csrf_token %}
                    <div class="form-group">
                        <label>主题标题</label>
                        {{ form.topic_title }}
                    </div>
                    <div class="form-group">
                        <label>主题内容</label>
                        {{ form.topic_content }}
                    </div>
                    <div class="form-group">
                        <label>从属版面</label>
                        {{ form.topic_board }}
                    </div>
                    <div class="form-group">
                        <input type="submit" value="提交">
                        <input type="reset" value="重置">
                    </div>
                </form>
            </div>
        </div>
    </div>
{% endblock %}
{% block foot_js %}
    <script src="{% static 'Validform/demo/js/Validform_v5.3.2.js' %}"></script>
    <script src="{% static 'js/bbs/topic_create.js' %}"></script>
{% endblock %}